package cn.shujuhai.qtadmin.platform.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.shujuhai.qtadmin.platform.domain.SysUser;

/**
 * @Entity cn.shujuhai.qtadmin.platform.domain.SysUser
 * @author dch
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 通过用户id获取权限列表
     * 
     * @param userId
     *            userId
     * @return 权限code列表
     */
    @InterceptorIgnore(illegalSql = "1")
    List<String> getUserPermissions(@Param("userId") Integer userId);
}
